package com.base.myproject.client.tools;

import com.extjs.gxt.ui.client.core.DomQuery;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.xml.client.Element;

public class XML {
	 
	 public static native JavaScriptObject getJsObject(Element elem) /*-{
		return elem.@com.google.gwt.xml.client.impl.DOMItem::getJsObject()();
	}-*/;

	public static String getValue(Element elem, String name) {
		return DomQuery.selectValue(name, getJsObject(elem));
	}
}
